package czy.demo.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/* jsp作用域展示 */
@Controller
@RequestMapping("/scope")
public class ScopeController {

    private static final Logger logger = LoggerFactory.getLogger(ScopeController.class);

    @GetMapping("/default")
    public String defaul(){
        logger.info("访问作用域default页面！");
        return "scope/default";
    }

    @GetMapping("/count")
    public String count(){
        logger.info("访问作用域count页面！");
        return "scope/count";
    }

    @GetMapping("/application")
    public String application(){
        logger.info("访问application作用域页面！");
        return "scope/application";
    }

    @GetMapping("/session")
    public String session(){
        logger.info("访问session作用域页面！");
        return "scope/session";
    }

    @GetMapping("/request")
    public String request(){
        logger.info("访问request作用域页面！");
        return "scope/request";
    }

    @GetMapping("/page")
    public String page(){
        logger.info("访问page作用域页面！");
        return "scope/page";
    }

}
